package web.servlet;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.velocity.Template;
import org.apache.velocity.context.Context;
import org.apache.velocity.tools.view.servlet.VelocityLayoutServlet;

public class UploadServlet extends VelocityLayoutServlet {

	protected Template handleRequest(HttpServletRequest request,HttpServletResponse response,
									Context ctx) throws Exception{
		ctx.put("username", "kennyworld");
		System.out.println("request.contenttype:"+request.getContentType());
		Template template = this.getTemplate("upload.vm");
		return template;
	}
}
